<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<title>SymbolTable (Closure Compiler)</title>
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
    if (location.href.indexOf('is-external=true') == -1) {
        parent.document.title="SymbolTable (Closure Compiler)";
    }
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!--   -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../com/google/javascript/jscomp/StrictWarningsGuard.html" title="class in com.google.javascript.jscomp"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../com/google/javascript/jscomp/SymbolTable.Reference.html" title="class in com.google.javascript.jscomp"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?com/google/javascript/jscomp/SymbolTable.html" target="_top">Frames</a></li>
<li><a href="SymbolTable.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_top");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested_class_summary">Nested</a>&nbsp;|&nbsp;</li>
<li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_top">
<!--   -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">com.google.javascript.jscomp</div>
<h2 title="Class SymbolTable" class="title">Class SymbolTable</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li>com.google.javascript.jscomp.SymbolTable</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><a href="../../../../com/google/javascript/rhino/jstype/StaticSymbolTable.html" title="interface in com.google.javascript.rhino.jstype">StaticSymbolTable</a>&lt;<a href="../../../../com/google/javascript/jscomp/SymbolTable.Symbol.html" title="class in com.google.javascript.jscomp">SymbolTable.Symbol</a>,<a href="../../../../com/google/javascript/jscomp/SymbolTable.Reference.html" title="class in com.google.javascript.jscomp">SymbolTable.Reference</a>&gt;</dd>
</dl>
<hr>
<br>
<pre>public final class <span class="strong">SymbolTable</span>
extends java.lang.Object
implements <a href="../../../../com/google/javascript/rhino/jstype/StaticSymbolTable.html" title="interface in com.google.javascript.rhino.jstype">StaticSymbolTable</a>&lt;<a href="../../../../com/google/javascript/jscomp/SymbolTable.Symbol.html" title="class in com.google.javascript.jscomp">SymbolTable.Symbol</a>,<a href="../../../../com/google/javascript/jscomp/SymbolTable.Reference.html" title="class in com.google.javascript.jscomp">SymbolTable.Reference</a>&gt;</pre>
<div class="block">A symbol table for people that want to use Closure Compiler as an indexer.

 Contains an index of all the symbols in the code within a compilation
 job. The API is designed for people who want to visit all the symbols, rather
 than people who want to lookup a specific symbol by a certain key.

 We can use this to combine different types of symbol tables. For example,
 one class might have a <code>StaticSymbolTable</code> of all variable references,
 and another class might have a <code>StaticSymbolTable</code> of all type names
 in JSDoc comments. This class allows you to combine them into a unified
 index.

 Most passes build their own "partial" symbol table that implements the same
 interface (StaticSymbolTable, StaticSlot, and friends). Individual compiler
 passes usually need more or less metadata about the certainty of symbol
 information. Building a complete symbol table with all the necessary metadata
 for all passes would be too slow. However, as long as these "partial" symbol
 tables implement the proper interfaces, we should be able to add them to this
 symbol table to make it more complete.

 If clients want fast lookup, they should build their own wrapper around
 this symbol table that indexes symbols or references by the desired lookup
 key.

 By design, when this symbol table creates symbols for types, it tries
 to mimic the symbol table you would get in an OO language. For example,
 the "type Foo" and "the constructor that creates objects of type Foo"
 are the same symbol. The types of "Foo.prototype" and "new Foo()" also
 have the same symbol. Although JSCompiler internally treats these as
 distinct symbols, we assume that most clients will not care about
 the distinction.</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../com/google/javascript/jscomp/SymbolTable.html#addSymbolsFrom(com.google.javascript.rhino.jstype.StaticSymbolTable)"><code>For more information on how to write plugins for this
    symbol table.</code></a></dd></dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== NESTED CLASS SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="nested_class_summary">
<!--   -->
</a>
<h3>Nested Class Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Nested Class Summary table, listing nested classes, and an explanation">
<caption><span>Nested Classes</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Class and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static class&nbsp;</code></td>
<td class="colLast"><code><strong><a href="../../../../com/google/javascript/jscomp/SymbolTable.Reference.html" title="class in com.google.javascript.jscomp">SymbolTable.Reference</a></strong></code>
<div class="block">Reference</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static class&nbsp;</code></td>
<td class="colLast"><code><strong><a href="../../../../com/google/javascript/jscomp/SymbolTable.Symbol.html" title="class in com.google.javascript.jscomp">SymbolTable.Symbol</a></strong></code>
<div class="block">A symbol-table entry</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static class&nbsp;</code></td>
<td class="colLast"><code><strong><a href="../../../../com/google/javascript/jscomp/SymbolTable.SymbolScope.html" title="class in com.google.javascript.jscomp">SymbolTable.SymbolScope</a></strong></code>
<div class="block">Scope of a symbol</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_summary">
<!--   -->
</a>
<h3>Field Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../com/google/javascript/jscomp/SymbolTable.html#GLOBAL_THIS">GLOBAL_THIS</a></strong></code>
<div class="block">The name we use for the JavaScript built-in Global object.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method_summary">
<!--   -->
</a>
<h3>Method Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../com/google/javascript/jscomp/SymbolTable.html#addAnonymousFunctions()">addAnonymousFunctions</a></strong>()</code>
<div class="block">Finds anonymous functions in local scopes, and gives them names
 and symbols.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../com/google/javascript/jscomp/SymbolTable.Symbol.html" title="class in com.google.javascript.jscomp">SymbolTable.Symbol</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/google/javascript/jscomp/SymbolTable.html#declareInferredSymbol(com.google.javascript.jscomp.SymbolTable.SymbolScope, java.lang.String, com.google.javascript.rhino.Node)">declareInferredSymbol</a></strong>(<a href="../../../../com/google/javascript/jscomp/SymbolTable.SymbolScope.html" title="class in com.google.javascript.jscomp">SymbolTable.SymbolScope</a>&nbsp;scope,
                     java.lang.String&nbsp;name,
                     <a href="../../../../com/google/javascript/rhino/Node.html" title="class in com.google.javascript.rhino">Node</a>&nbsp;declNode)</code>
<div class="block">Declare a symbol after the main symbol table was constructed.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>java.util.Collection&lt;<a href="../../../../com/google/javascript/rhino/JSDocInfo.html" title="class in com.google.javascript.rhino">JSDocInfo</a>&gt;</code></td>
<td class="colLast"><code><strong><a href="../../../../com/google/javascript/jscomp/SymbolTable.html#getAllJSDocInfo()">getAllJSDocInfo</a></strong>()</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>java.util.Collection&lt;<a href="../../../../com/google/javascript/jscomp/SymbolTable.SymbolScope.html" title="class in com.google.javascript.jscomp">SymbolTable.SymbolScope</a>&gt;</code></td>
<td class="colLast"><code><strong><a href="../../../../com/google/javascript/jscomp/SymbolTable.html#getAllScopes()">getAllScopes</a></strong>()</code>
<div class="block">Gets all the scopes in this symbol table.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>java.lang.Iterable&lt;<a href="../../../../com/google/javascript/jscomp/SymbolTable.Symbol.html" title="class in com.google.javascript.jscomp">SymbolTable.Symbol</a>&gt;</code></td>
<td class="colLast"><code><strong><a href="../../../../com/google/javascript/jscomp/SymbolTable.html#getAllSymbols()">getAllSymbols</a></strong>()</code>
<div class="block">Returns all variables in this symbol table.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>java.util.List&lt;<a href="../../../../com/google/javascript/jscomp/SymbolTable.Symbol.html" title="class in com.google.javascript.jscomp">SymbolTable.Symbol</a>&gt;</code></td>
<td class="colLast"><code><strong><a href="../../../../com/google/javascript/jscomp/SymbolTable.html#getAllSymbolsForType(com.google.javascript.rhino.jstype.JSType)">getAllSymbolsForType</a></strong>(<a href="../../../../com/google/javascript/rhino/jstype/JSType.html" title="class in com.google.javascript.rhino.jstype">JSType</a>&nbsp;type)</code>
<div class="block">Gets all symbols associated with the given type.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>java.lang.Iterable&lt;<a href="../../../../com/google/javascript/jscomp/SymbolTable.Symbol.html" title="class in com.google.javascript.jscomp">SymbolTable.Symbol</a>&gt;</code></td>
<td class="colLast"><code><strong><a href="../../../../com/google/javascript/jscomp/SymbolTable.html#getAllSymbolsForTypeOf(com.google.javascript.jscomp.SymbolTable.Symbol)">getAllSymbolsForTypeOf</a></strong>(<a href="../../../../com/google/javascript/jscomp/SymbolTable.Symbol.html" title="class in com.google.javascript.jscomp">SymbolTable.Symbol</a>&nbsp;sym)</code>
<div class="block">Get all symbols associated with the type of the given symbol.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>java.util.List&lt;<a href="../../../../com/google/javascript/jscomp/SymbolTable.Symbol.html" title="class in com.google.javascript.jscomp">SymbolTable.Symbol</a>&gt;</code></td>
<td class="colLast"><code><strong><a href="../../../../com/google/javascript/jscomp/SymbolTable.html#getAllSymbolsSorted()">getAllSymbolsSorted</a></strong>()</code>
<div class="block">Get the symbols in their natural ordering.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../com/google/javascript/jscomp/SymbolTable.SymbolScope.html" title="class in com.google.javascript.jscomp">SymbolTable.SymbolScope</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/google/javascript/jscomp/SymbolTable.html#getEnclosingScope(com.google.javascript.rhino.Node)">getEnclosingScope</a></strong>(<a href="../../../../com/google/javascript/rhino/Node.html" title="class in com.google.javascript.rhino">Node</a>&nbsp;n)</code>
<div class="block">Gets the scope that contains the given node.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../com/google/javascript/jscomp/SymbolTable.SymbolScope.html" title="class in com.google.javascript.jscomp">SymbolTable.SymbolScope</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/google/javascript/jscomp/SymbolTable.html#getGlobalScope()">getGlobalScope</a></strong>()</code>
<div class="block">Returns the global scope.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>com.google.common.collect.Ordering&lt;<a href="../../../../com/google/javascript/jscomp/SymbolTable.Symbol.html" title="class in com.google.javascript.jscomp">SymbolTable.Symbol</a>&gt;</code></td>
<td class="colLast"><code><strong><a href="../../../../com/google/javascript/jscomp/SymbolTable.html#getNaturalSymbolOrdering()">getNaturalSymbolOrdering</a></strong>()</code>
<div class="block">Gets the 'natural' ordering of symbols.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../com/google/javascript/jscomp/SymbolTable.Symbol.html" title="class in com.google.javascript.jscomp">SymbolTable.Symbol</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/google/javascript/jscomp/SymbolTable.html#getParameterInFunction(com.google.javascript.jscomp.SymbolTable.Symbol, java.lang.String)">getParameterInFunction</a></strong>(<a href="../../../../com/google/javascript/jscomp/SymbolTable.Symbol.html" title="class in com.google.javascript.jscomp">SymbolTable.Symbol</a>&nbsp;sym,
                      java.lang.String&nbsp;paramName)</code>
<div class="block">If <code>sym</code> is a function, try to find a Symbol for
 a parameter with the given name.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>java.util.List&lt;<a href="../../../../com/google/javascript/jscomp/SymbolTable.Reference.html" title="class in com.google.javascript.jscomp">SymbolTable.Reference</a>&gt;</code></td>
<td class="colLast"><code><strong><a href="../../../../com/google/javascript/jscomp/SymbolTable.html#getReferenceList(com.google.javascript.jscomp.SymbolTable.Symbol)">getReferenceList</a></strong>(<a href="../../../../com/google/javascript/jscomp/SymbolTable.Symbol.html" title="class in com.google.javascript.jscomp">SymbolTable.Symbol</a>&nbsp;symbol)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>java.lang.Iterable&lt;<a href="../../../../com/google/javascript/jscomp/SymbolTable.Reference.html" title="class in com.google.javascript.jscomp">SymbolTable.Reference</a>&gt;</code></td>
<td class="colLast"><code><strong><a href="../../../../com/google/javascript/jscomp/SymbolTable.html#getReferences(com.google.javascript.jscomp.SymbolTable.Symbol)">getReferences</a></strong>(<a href="../../../../com/google/javascript/jscomp/SymbolTable.Symbol.html" title="class in com.google.javascript.jscomp">SymbolTable.Symbol</a>&nbsp;symbol)</code>
<div class="block">Returns the references that point to the given symbol.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../com/google/javascript/jscomp/SymbolTable.SymbolScope.html" title="class in com.google.javascript.jscomp">SymbolTable.SymbolScope</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/google/javascript/jscomp/SymbolTable.html#getScope(com.google.javascript.jscomp.SymbolTable.Symbol)">getScope</a></strong>(<a href="../../../../com/google/javascript/jscomp/SymbolTable.Symbol.html" title="class in com.google.javascript.jscomp">SymbolTable.Symbol</a>&nbsp;slot)</code>
<div class="block">Returns the scope for a given symbol.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../com/google/javascript/jscomp/SymbolTable.Symbol.html" title="class in com.google.javascript.jscomp">SymbolTable.Symbol</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/google/javascript/jscomp/SymbolTable.html#getSymbolDeclaredBy(com.google.javascript.rhino.jstype.EnumType)">getSymbolDeclaredBy</a></strong>(<a href="../../../../com/google/javascript/rhino/jstype/EnumType.html" title="class in com.google.javascript.rhino.jstype">EnumType</a>&nbsp;enumType)</code>
<div class="block">Gets the symbol for the given enum.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../com/google/javascript/jscomp/SymbolTable.Symbol.html" title="class in com.google.javascript.jscomp">SymbolTable.Symbol</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/google/javascript/jscomp/SymbolTable.html#getSymbolDeclaredBy(com.google.javascript.rhino.jstype.FunctionType)">getSymbolDeclaredBy</a></strong>(<a href="../../../../com/google/javascript/rhino/jstype/FunctionType.html" title="class in com.google.javascript.rhino.jstype">FunctionType</a>&nbsp;fn)</code>
<div class="block">Gets the symbol for the given constructor or interface.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../com/google/javascript/jscomp/SymbolTable.Symbol.html" title="class in com.google.javascript.jscomp">SymbolTable.Symbol</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/google/javascript/jscomp/SymbolTable.html#getSymbolForInstancesOf(com.google.javascript.rhino.jstype.FunctionType)">getSymbolForInstancesOf</a></strong>(<a href="../../../../com/google/javascript/rhino/jstype/FunctionType.html" title="class in com.google.javascript.rhino.jstype">FunctionType</a>&nbsp;fn)</code>
<div class="block">Gets the symbol for the prototype of the given constructor or interface.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../com/google/javascript/jscomp/SymbolTable.Symbol.html" title="class in com.google.javascript.jscomp">SymbolTable.Symbol</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/google/javascript/jscomp/SymbolTable.html#getSymbolForInstancesOf(com.google.javascript.jscomp.SymbolTable.Symbol)">getSymbolForInstancesOf</a></strong>(<a href="../../../../com/google/javascript/jscomp/SymbolTable.Symbol.html" title="class in com.google.javascript.jscomp">SymbolTable.Symbol</a>&nbsp;sym)</code>
<div class="block">Gets the symbol for the prototype if this is the symbol for a constructor
 or interface.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../com/google/javascript/jscomp/SymbolTable.Symbol.html" title="class in com.google.javascript.jscomp">SymbolTable.Symbol</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/google/javascript/jscomp/SymbolTable.html#getSymbolForScope(com.google.javascript.jscomp.SymbolTable.SymbolScope)">getSymbolForScope</a></strong>(<a href="../../../../com/google/javascript/jscomp/SymbolTable.SymbolScope.html" title="class in com.google.javascript.jscomp">SymbolTable.SymbolScope</a>&nbsp;scope)</code>
<div class="block">All local scopes are associated with a function, and some functions
 are associated with a symbol.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../com/google/javascript/jscomp/SymbolTable.html#toDebugString()">toDebugString</a></strong>()</code>&nbsp;</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
<!--   -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.Object</h3>
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_detail">
<!--   -->
</a>
<h3>Field Detail</h3>
<a name="GLOBAL_THIS">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>GLOBAL_THIS</h4>
<pre>public static final&nbsp;java.lang.String GLOBAL_THIS</pre>
<div class="block">The name we use for the JavaScript built-in Global object.  It's
 anonymous in JavaScript, so we have to give it an invalid identifier
 to avoid conflicts with user-defined property names.</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../constant-values.html#com.google.javascript.jscomp.SymbolTable.GLOBAL_THIS">Constant Field Values</a></dd></dl>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!--   -->
</a>
<h3>Method Detail</h3>
<a name="getReferences(com.google.javascript.jscomp.SymbolTable.Symbol)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getReferences</h4>
<pre>public&nbsp;java.lang.Iterable&lt;<a href="../../../../com/google/javascript/jscomp/SymbolTable.Reference.html" title="class in com.google.javascript.jscomp">SymbolTable.Reference</a>&gt;&nbsp;getReferences(<a href="../../../../com/google/javascript/jscomp/SymbolTable.Symbol.html" title="class in com.google.javascript.jscomp">SymbolTable.Symbol</a>&nbsp;symbol)</pre>
<div class="block"><strong>Description copied from interface:&nbsp;<code><a href="../../../../com/google/javascript/rhino/jstype/StaticSymbolTable.html#getReferences(S)">StaticSymbolTable</a></code></strong></div>
<div class="block">Returns the references that point to the given symbol.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../com/google/javascript/rhino/jstype/StaticSymbolTable.html#getReferences(S)">getReferences</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../com/google/javascript/rhino/jstype/StaticSymbolTable.html" title="interface in com.google.javascript.rhino.jstype">StaticSymbolTable</a>&lt;<a href="../../../../com/google/javascript/jscomp/SymbolTable.Symbol.html" title="class in com.google.javascript.jscomp">SymbolTable.Symbol</a>,<a href="../../../../com/google/javascript/jscomp/SymbolTable.Reference.html" title="class in com.google.javascript.jscomp">SymbolTable.Reference</a>&gt;</code></dd>
</dl>
</li>
</ul>
<a name="getReferenceList(com.google.javascript.jscomp.SymbolTable.Symbol)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getReferenceList</h4>
<pre>public&nbsp;java.util.List&lt;<a href="../../../../com/google/javascript/jscomp/SymbolTable.Reference.html" title="class in com.google.javascript.jscomp">SymbolTable.Reference</a>&gt;&nbsp;getReferenceList(<a href="../../../../com/google/javascript/jscomp/SymbolTable.Symbol.html" title="class in com.google.javascript.jscomp">SymbolTable.Symbol</a>&nbsp;symbol)</pre>
</li>
</ul>
<a name="getAllSymbols()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getAllSymbols</h4>
<pre>public&nbsp;java.lang.Iterable&lt;<a href="../../../../com/google/javascript/jscomp/SymbolTable.Symbol.html" title="class in com.google.javascript.jscomp">SymbolTable.Symbol</a>&gt;&nbsp;getAllSymbols()</pre>
<div class="block"><strong>Description copied from interface:&nbsp;<code><a href="../../../../com/google/javascript/rhino/jstype/StaticSymbolTable.html#getAllSymbols()">StaticSymbolTable</a></code></strong></div>
<div class="block">Returns all variables in this symbol table.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../com/google/javascript/rhino/jstype/StaticSymbolTable.html#getAllSymbols()">getAllSymbols</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../com/google/javascript/rhino/jstype/StaticSymbolTable.html" title="interface in com.google.javascript.rhino.jstype">StaticSymbolTable</a>&lt;<a href="../../../../com/google/javascript/jscomp/SymbolTable.Symbol.html" title="class in com.google.javascript.jscomp">SymbolTable.Symbol</a>,<a href="../../../../com/google/javascript/jscomp/SymbolTable.Reference.html" title="class in com.google.javascript.jscomp">SymbolTable.Reference</a>&gt;</code></dd>
</dl>
</li>
</ul>
<a name="getAllSymbolsSorted()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getAllSymbolsSorted</h4>
<pre>public&nbsp;java.util.List&lt;<a href="../../../../com/google/javascript/jscomp/SymbolTable.Symbol.html" title="class in com.google.javascript.jscomp">SymbolTable.Symbol</a>&gt;&nbsp;getAllSymbolsSorted()</pre>
<div class="block">Get the symbols in their natural ordering.
 Always returns a mutable list.</div>
</li>
</ul>
<a name="getNaturalSymbolOrdering()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getNaturalSymbolOrdering</h4>
<pre>public&nbsp;com.google.common.collect.Ordering&lt;<a href="../../../../com/google/javascript/jscomp/SymbolTable.Symbol.html" title="class in com.google.javascript.jscomp">SymbolTable.Symbol</a>&gt;&nbsp;getNaturalSymbolOrdering()</pre>
<div class="block">Gets the 'natural' ordering of symbols.

 Right now, we only guarantee that symbols in the global scope will come
 before symbols in local scopes. After that, the order is deterministic but
 undefined.</div>
</li>
</ul>
<a name="getScope(com.google.javascript.jscomp.SymbolTable.Symbol)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getScope</h4>
<pre>public&nbsp;<a href="../../../../com/google/javascript/jscomp/SymbolTable.SymbolScope.html" title="class in com.google.javascript.jscomp">SymbolTable.SymbolScope</a>&nbsp;getScope(<a href="../../../../com/google/javascript/jscomp/SymbolTable.Symbol.html" title="class in com.google.javascript.jscomp">SymbolTable.Symbol</a>&nbsp;slot)</pre>
<div class="block"><strong>Description copied from interface:&nbsp;<code><a href="../../../../com/google/javascript/rhino/jstype/StaticSymbolTable.html#getScope(S)">StaticSymbolTable</a></code></strong></div>
<div class="block">Returns the scope for a given symbol.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../com/google/javascript/rhino/jstype/StaticSymbolTable.html#getScope(S)">getScope</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../com/google/javascript/rhino/jstype/StaticSymbolTable.html" title="interface in com.google.javascript.rhino.jstype">StaticSymbolTable</a>&lt;<a href="../../../../com/google/javascript/jscomp/SymbolTable.Symbol.html" title="class in com.google.javascript.jscomp">SymbolTable.Symbol</a>,<a href="../../../../com/google/javascript/jscomp/SymbolTable.Reference.html" title="class in com.google.javascript.jscomp">SymbolTable.Reference</a>&gt;</code></dd>
</dl>
</li>
</ul>
<a name="getAllJSDocInfo()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getAllJSDocInfo</h4>
<pre>public&nbsp;java.util.Collection&lt;<a href="../../../../com/google/javascript/rhino/JSDocInfo.html" title="class in com.google.javascript.rhino">JSDocInfo</a>&gt;&nbsp;getAllJSDocInfo()</pre>
</li>
</ul>
<a name="declareInferredSymbol(com.google.javascript.jscomp.SymbolTable.SymbolScope, java.lang.String, com.google.javascript.rhino.Node)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>declareInferredSymbol</h4>
<pre>public&nbsp;<a href="../../../../com/google/javascript/jscomp/SymbolTable.Symbol.html" title="class in com.google.javascript.jscomp">SymbolTable.Symbol</a>&nbsp;declareInferredSymbol(<a href="../../../../com/google/javascript/jscomp/SymbolTable.SymbolScope.html" title="class in com.google.javascript.jscomp">SymbolTable.SymbolScope</a>&nbsp;scope,
                                       java.lang.String&nbsp;name,
                                       <a href="../../../../com/google/javascript/rhino/Node.html" title="class in com.google.javascript.rhino">Node</a>&nbsp;declNode)</pre>
<div class="block">Declare a symbol after the main symbol table was constructed.
 Throws an exception if you try to declare a symbol twice.</div>
</li>
</ul>
<a name="getEnclosingScope(com.google.javascript.rhino.Node)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getEnclosingScope</h4>
<pre>public&nbsp;<a href="../../../../com/google/javascript/jscomp/SymbolTable.SymbolScope.html" title="class in com.google.javascript.jscomp">SymbolTable.SymbolScope</a>&nbsp;getEnclosingScope(<a href="../../../../com/google/javascript/rhino/Node.html" title="class in com.google.javascript.rhino">Node</a>&nbsp;n)</pre>
<div class="block">Gets the scope that contains the given node.
 If <code>n</code> is a function name, we return the scope that contains the
 function, not the function itself.</div>
</li>
</ul>
<a name="getParameterInFunction(com.google.javascript.jscomp.SymbolTable.Symbol, java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getParameterInFunction</h4>
<pre>public&nbsp;<a href="../../../../com/google/javascript/jscomp/SymbolTable.Symbol.html" title="class in com.google.javascript.jscomp">SymbolTable.Symbol</a>&nbsp;getParameterInFunction(<a href="../../../../com/google/javascript/jscomp/SymbolTable.Symbol.html" title="class in com.google.javascript.jscomp">SymbolTable.Symbol</a>&nbsp;sym,
                                        java.lang.String&nbsp;paramName)</pre>
<div class="block">If <code>sym</code> is a function, try to find a Symbol for
 a parameter with the given name.

 Returns null if we couldn't find one.

 Notice that this just makes a best effort, and may not be able
 to find parameters for non-conventional function definitions.
 For example, we would not be able to find "y" in this code:
 <code>
 var x = x() ? function(y) {} : function(y) {};
 </code></div>
</li>
</ul>
<a name="getSymbolForScope(com.google.javascript.jscomp.SymbolTable.SymbolScope)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getSymbolForScope</h4>
<pre>public&nbsp;<a href="../../../../com/google/javascript/jscomp/SymbolTable.Symbol.html" title="class in com.google.javascript.jscomp">SymbolTable.Symbol</a>&nbsp;getSymbolForScope(<a href="../../../../com/google/javascript/jscomp/SymbolTable.SymbolScope.html" title="class in com.google.javascript.jscomp">SymbolTable.SymbolScope</a>&nbsp;scope)</pre>
<div class="block">All local scopes are associated with a function, and some functions
 are associated with a symbol. Returns the symbol associated with the given
 scope.</div>
</li>
</ul>
<a name="getAllSymbolsForTypeOf(com.google.javascript.jscomp.SymbolTable.Symbol)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getAllSymbolsForTypeOf</h4>
<pre>public&nbsp;java.lang.Iterable&lt;<a href="../../../../com/google/javascript/jscomp/SymbolTable.Symbol.html" title="class in com.google.javascript.jscomp">SymbolTable.Symbol</a>&gt;&nbsp;getAllSymbolsForTypeOf(<a href="../../../../com/google/javascript/jscomp/SymbolTable.Symbol.html" title="class in com.google.javascript.jscomp">SymbolTable.Symbol</a>&nbsp;sym)</pre>
<div class="block">Get all symbols associated with the type of the given symbol.

 For example, given a variable x declared as
 /* @type {Array|Date} /
 var x = f();
 this will return the constructors for Array and Date.</div>
</li>
</ul>
<a name="getGlobalScope()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getGlobalScope</h4>
<pre>public&nbsp;<a href="../../../../com/google/javascript/jscomp/SymbolTable.SymbolScope.html" title="class in com.google.javascript.jscomp">SymbolTable.SymbolScope</a>&nbsp;getGlobalScope()</pre>
<div class="block">Returns the global scope.</div>
</li>
</ul>
<a name="getSymbolDeclaredBy(com.google.javascript.rhino.jstype.FunctionType)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getSymbolDeclaredBy</h4>
<pre>public&nbsp;<a href="../../../../com/google/javascript/jscomp/SymbolTable.Symbol.html" title="class in com.google.javascript.jscomp">SymbolTable.Symbol</a>&nbsp;getSymbolDeclaredBy(<a href="../../../../com/google/javascript/rhino/jstype/FunctionType.html" title="class in com.google.javascript.rhino.jstype">FunctionType</a>&nbsp;fn)</pre>
<div class="block">Gets the symbol for the given constructor or interface.</div>
</li>
</ul>
<a name="getSymbolDeclaredBy(com.google.javascript.rhino.jstype.EnumType)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getSymbolDeclaredBy</h4>
<pre>public&nbsp;<a href="../../../../com/google/javascript/jscomp/SymbolTable.Symbol.html" title="class in com.google.javascript.jscomp">SymbolTable.Symbol</a>&nbsp;getSymbolDeclaredBy(<a href="../../../../com/google/javascript/rhino/jstype/EnumType.html" title="class in com.google.javascript.rhino.jstype">EnumType</a>&nbsp;enumType)</pre>
<div class="block">Gets the symbol for the given enum.</div>
</li>
</ul>
<a name="getSymbolForInstancesOf(com.google.javascript.jscomp.SymbolTable.Symbol)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getSymbolForInstancesOf</h4>
<pre>public&nbsp;<a href="../../../../com/google/javascript/jscomp/SymbolTable.Symbol.html" title="class in com.google.javascript.jscomp">SymbolTable.Symbol</a>&nbsp;getSymbolForInstancesOf(<a href="../../../../com/google/javascript/jscomp/SymbolTable.Symbol.html" title="class in com.google.javascript.jscomp">SymbolTable.Symbol</a>&nbsp;sym)</pre>
<div class="block">Gets the symbol for the prototype if this is the symbol for a constructor
 or interface.</div>
</li>
</ul>
<a name="getSymbolForInstancesOf(com.google.javascript.rhino.jstype.FunctionType)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getSymbolForInstancesOf</h4>
<pre>public&nbsp;<a href="../../../../com/google/javascript/jscomp/SymbolTable.Symbol.html" title="class in com.google.javascript.jscomp">SymbolTable.Symbol</a>&nbsp;getSymbolForInstancesOf(<a href="../../../../com/google/javascript/rhino/jstype/FunctionType.html" title="class in com.google.javascript.rhino.jstype">FunctionType</a>&nbsp;fn)</pre>
<div class="block">Gets the symbol for the prototype of the given constructor or interface.</div>
</li>
</ul>
<a name="getAllSymbolsForType(com.google.javascript.rhino.jstype.JSType)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getAllSymbolsForType</h4>
<pre>public&nbsp;java.util.List&lt;<a href="../../../../com/google/javascript/jscomp/SymbolTable.Symbol.html" title="class in com.google.javascript.jscomp">SymbolTable.Symbol</a>&gt;&nbsp;getAllSymbolsForType(<a href="../../../../com/google/javascript/rhino/jstype/JSType.html" title="class in com.google.javascript.rhino.jstype">JSType</a>&nbsp;type)</pre>
<div class="block">Gets all symbols associated with the given type.
 For union types, this may be multiple symbols.
 For instance types, this will return the constructor of
 that instance.</div>
</li>
</ul>
<a name="toDebugString()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toDebugString</h4>
<pre>public&nbsp;java.lang.String&nbsp;toDebugString()</pre>
</li>
</ul>
<a name="getAllScopes()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getAllScopes</h4>
<pre>public&nbsp;java.util.Collection&lt;<a href="../../../../com/google/javascript/jscomp/SymbolTable.SymbolScope.html" title="class in com.google.javascript.jscomp">SymbolTable.SymbolScope</a>&gt;&nbsp;getAllScopes()</pre>
<div class="block">Gets all the scopes in this symbol table.</div>
</li>
</ul>
<a name="addAnonymousFunctions()">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>addAnonymousFunctions</h4>
<pre>public&nbsp;void&nbsp;addAnonymousFunctions()</pre>
<div class="block">Finds anonymous functions in local scopes, and gives them names
 and symbols. They will show up as local variables with names
 "function%0", "function%1", etc.</div>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!--   -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../com/google/javascript/jscomp/StrictWarningsGuard.html" title="class in com.google.javascript.jscomp"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../com/google/javascript/jscomp/SymbolTable.Reference.html" title="class in com.google.javascript.jscomp"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?com/google/javascript/jscomp/SymbolTable.html" target="_top">Frames</a></li>
<li><a href="SymbolTable.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_bottom");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested_class_summary">Nested</a>&nbsp;|&nbsp;</li>
<li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_bottom">
<!--   -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>
